import React from 'react'

export type CustomMessageRenderProps = {
  data: {
    text: string
  }
}
const CustomMessageRender: React.FC<CustomMessageRenderProps> = (props) => {
  const { data: { text } } = props
  return (
    <div className="markdown-body">
      <p>{text}</p>
    </div>
  )
}

export default CustomMessageRender
